<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <?php include 'inc/head.php'; ?>
</head>

<body>
  <?php include 'inc/header.php'; ?>

  <div class="container">
    <?php
    echo form_create(
      [
        'action' => M('admin', 'system', 'edit_action', $this->id)
      ],
      [
        ['type' => 'part_start'],
        ['type' => 'text', 'label' => '域名', 'key' => 'domain', 'required' => 'required'],
        ['type' => 'text', 'label' => '网站名称', 'key' => 'name', 'required' => 'required'],
        ['type' => 'editor', 'label' => '版权信息', 'key' => 'copyright'],
        [
          'type' => 'select', 'label' => '网站状态', 'key' => 'state', 'value' => [['label' => '开启', 'value' => 1], ['label' => '关闭', 'value' => 0]]
        ],
        ['type' => 'select', 'label' => '首页灰色', 'key' => 'gray', 'value' => [['label' => '开启', 'value' => 1], ['label' => '关闭', 'value' => 0]]],
        ['type' => 'part_end'],

        ['type' => 'part_start'],
        ['type' => 'text', 'label' => '优化标题', 'key' => 'seoname'],
        ['type' => 'text', 'label' => '关键字', 'key' => 'keywords'],
        ['type' => 'textarea', 'label' => '关键描述', 'key' => 'description'],
        ['type' => 'part_end'],

        ['type' => 'submit', 'label' => '提交', 'key' => 'save']
      ],
      ['基本信息', 'SEO'],
      $row
    );
    ?>
  </div>

  <?php include 'inc/footer.php'; ?>

</body>

</html>